package com.stx.design.proxy;

public class NetWorkManager {
	
	private static IMessage msg;
	
	private volatile static NetWorkManager instance;
	
	public static NetWorkManager getInstance(){
		if(instance == null){
			synchronized(NetWorkManager.class){
				if(instance == null){
					instance = new NetWorkManager();
				}
			}
		}
		return instance;
	}
	
	public void sendMessage(String message){
		msg.sendMessage(message);
	}
	
	private NetWorkManager(){
		msg = new NetMessage();
	}
}
